package com.scf.loanmanage.service;

import com.scf.loanmanage.entity.AssetPreservation;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AssetPreservationService {

    List<AssetPreservation>  selectAll(@Param("pageIndex") Integer pageIndex,
                                       @Param("pageSize") Integer pageSize);

    List<AssetPreservation> selectAlls();

    void insert(@Param("asid") Integer asid, @Param("enterprisename") String enterprisename, @Param("code") String code, @Param("amountborrowed") Double amountborrowed, @Param("salesman") String salesman, @Param("registrant") String registrant, @Param("overterm") Integer overterm, @Param("overdate") Integer overdate, @Param("begindate") Date begindate);
    //查询总条数
    Integer selectcount();

    //查询企业或ID AssetPreservation
    List<AssetPreservation> selectByname(@Param("enterprisename") String enterprisename, @Param("code") String code);

    void upadte(@Param("oid") Integer oid, @Param("count") Integer count);


    AssetPreservation selctByid(Integer oid);
    //修改mi名字
    void updateBynames(@Param("registrant") String registrant, @Param("asid") Integer asid);
}
